package _02string;

public class stringmethod {
    public static void main(String[] args) {
        String s = "hELlo";
		System.out.println(s.toUpperCase());
		System.out.println(s.toLowerCase());
		String s1 = s.concat("caonima");
		System.out.println(s1);
		String s3 = s1.replace("l","haha");
		System.out.println(s3);
		//s.toCharArray();
		//a.compareTo(b);
		//前大回证后大负数，相等o，前面都相同回长1-长2，不然返回第一个不同的插值
		int a=10;int b=20;
		int c = Math.min(a, b);
		System.out.print(c);
		String name = "join";
		int age  =10;
		String info = "woshoi"+name+age;
		System.out.println(info);
		age = 20;
		String formate = "我的姓名是%s 年龄是%d";
		String  ingo2 = String.format(formate, name, age);
		System.out.println(info);
		System.out.println(ingo2);
    }
}
